package cn.getech.data.metadata.model.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import lombok.Data;

@Data
public class CollectionBloodExcelError  extends CollectionBloodExcel{


    @ExcelProperty(value = "导入结果",order =60)
    @HeadFontStyle(color = 0)
    @ColumnWidth(16)
    private String result;

    @ExcelProperty(value = "备注",order =70)
    @ColumnWidth(36)
    @HeadFontStyle(color = 0)
    private String remark;
    private static final long serialVersionUID = 1L;

    public CollectionBloodExcelError() {

    }

    public CollectionBloodExcelError(CollectionBloodExcel excel, String result, String remark) {
        setSourceIp(excel.getSourceIp());
        setSourceName(excel.getSourceName());
        setSourcePort(excel.getSourcePort());
        setSourceFiledName(excel.getSourceFiledName());
        setSourceTableName(excel.getSourceTableName());

        setTargetIp(excel.getTargetIp());
        setTargetName(excel.getTargetName());
        setTargetPort(excel.getTargetPort());
        setTargetFiledName(excel.getTargetFiledName());
        setTargetTableName(excel.getTargetTableName());

        this.result = result;
        this.remark = remark;
    }
}